package com.chat.service;

import com.chat.Local;
import com.chat.common.Group;
import com.chat.common.Message;
import com.chat.common.MessageType;

/*
    解散群聊
 */
public class DisbandGroup {
     public void disbandgroup(String groupid){
          Message msg=new Message();
          msg.setMesType(MessageType.MESSAGE_DISBAND_GROPU);
          Group group=new Group();
          group.setId(groupid);
          msg.setData(group);
          ClientConnectServerThread clientConnectServerThread=ManageClientConnectServerThread.getClientConnectServerThread(Local.user.getUsername());
          clientConnectServerThread.send(msg);
     }
}
